See Also

SegmentedStream Class  | SegmentedStream Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

buffer
The storage location of the data.
originalSequence
The sequence to find.
replacementSequence
The sequence to replace.
offset
The zero-based position in the buffer from which to begin writing from.
count
The number of bytes from buffer that should be processed using the byte replacement desired.
See Also Languages PowerTCP SSL Sockets for .NET

Write(Byte[],Byte[],Byte[],Int32,Int32) Method

Dart.PowerTCP.SslSockets Namespace > SegmentedStream Class > Write Method : Write(Byte[],Byte[],Byte[],Int32,Int32) Method

Write data to the stream while carrying out a bytewise find/replace.

[Visual Basic]
Overloads Public Sub Write( _    ByVal buffer() As Byte, _    ByVal originalSequence() As Byte, _    ByVal replacementSequence() As Byte, _    ByVal offset As Integer, _    ByVal count As Integer _ )
[C#]
public void Write(    byte[] buffer,    byte[] originalSequence,    byte[] replacementSequence,    int offset,    int count );
[C++]
public: void Write(    byte[]* buffer,    byte[]* originalSequence,    byte[]* replacementSequence,    int offset,    int count )
[C++/CLI]
public: void Write(    bytearray<buffer>^ buffer,    bytearray<originalSequence>^ originalSequence,    bytearray<replacementSequence>^ replacementSequence,    int offset,    int count )

Parameters

buffer
The storage location of the data.
originalSequence
The sequence to find.
replacementSequence
The sequence to replace.
offset
The zero-based position in the buffer from which to begin writing from.
count
The number of bytes from buffer that should be processed using the byte replacement desired.

Remarks

Carries out a bytewise find/replace of all occurrences found in buffer of originalSequence with replacementSequence. This method is useful for performing simple encoding of data before sending.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SegmentedStream Class  | SegmentedStream Members  | Overload List


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.